package com.ymh.controller;

import java.security.Principal;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 13590
 * @date: 2020/11/8 10:28
 * @description:
 */
@RestController
public class Controller {

  @GetMapping("/test")
  public String test() {
    return "你好";
  }

  @RequestMapping("/user/authorize/info")
  public Principal user(Principal user) {
    return user;
  }
}
